Skip to content

Conversation

@tilo-14
Copy link
Contributor

@tilo-14 tilo-14 commented Jan 27, 2026

Summary

  • Add programs/anchor/ workspace with basic SPL token instruction examples
  • Add basic-instructions/ - approve, burn, close, create-ata, create-mint, create-token-account, freeze, mint-to, mint-to-checked, revoke, thaw, transfer-checked, transfer-interface
  • Add basic-macros/ - counter, create-ata, create-mint, create-token-account
  • Include test suite and shared test utilities

Test plan

  • Run cargo test-sbf in each program directory
  • Verify all examples compile with cargo build-sbf

Open with Devin

Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional flags.

Open in Devin Review

@tilo-14 tilo-14 changed the title Add Anchor examples for basic SPL token instructions Add Anchor examples basic Jan 28, 2026
@tilo-14 tilo-14 force-pushed the add-anchor-clean branch 2 times, most recently from 29fe205 to ee3f30f Compare January 29, 2026 15:15
pub mod light_token_anchor_transfer_interface {
use super::*;

pub fn transfer(ctx: Context<TransferAccounts>, amount: u64, decimals: u8) -> Result<()> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this wont work with spl or t22 only light to light.
Pls extend so that it works with any token

Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

View issue and 13 additional flags in Devin Review.

Open in Devin Review

tilo-14 added 4 commits January 30, 2026 18:19
Basic instruction examples: approve, burn, close, create-ata,
create-mint, create-token-account, freeze, mint-to, revoke, thaw,
transfer-checked, transfer-interface.

Basic macro examples: counter, create-ata, create-mint,
create-token-account, create-and-transfer with token-transfer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants